# -*- coding: utf-8 -*-
# coding: UTF-8
import scrapy
from tutorial.items import SnotrItem

class SnotrSpider(scrapy.Spider):
    name = 'snotr'
    allowed_domains = ["snotr.com"]
    start_urls = [
        'http://www.snotr.com/'
    ]

    def parse(self, response):
        item = SnotrItem()
        item['url'] = response.url
        for i in response.xpath("//div[@class='video']"):
            yield
        item['content'] = response.xpath("//div[@class='video']//h4").extract()
        yield item
